import { Entity, PrimaryUuid, MemberId, City, Province, Address, Area, Realname, Mobile, CreateDate, UpdateDate, Boolean, Remark, Title } from "@sker/core";

@Entity({ name: 'wx_member_address' })
export class WxMemberAddress {

    @PrimaryUuid({ primaryKeyConstraintName: "PK_WX_MEMBER_ADDRESS_ID" })
    id!: string;

    @MemberId({ label: '会员', name: 'member_id' })
    member_id!: string;

    @Province({ label: '省' })
    province!: string

    @City({ label: '市' })
    city!: string

    @Area({ label: '县/区' })
    area!: string

    @Title({ label: '街道', nullable: true, default: '' })
    street: string;

    @Address({ label: '详细地址' })
    address!: string;

    @Realname({})
    realname!: string;

    @Mobile({})
    mobile!: string;

    @Remark({ nullable: true, default: '' })
    remark: string;

    @Boolean({})
    is_default!: boolean;

    @CreateDate({ name: 'createDate' })
    createDate!: Date;

    @UpdateDate({ name: 'updatedAt' })
    updatedAt!: Date;
}